package com.qdlc.p2p.biz.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.service.RedEnvelopeAttachedService;
import com.qdlc.p2p.dal.dao.RedEnvelopeAttachedDao;
import com.qdlc.p2p.dal.dto.RedEnvelopeAttached;

/**
 * 红包附属 Service
 * @author ylx
 * @version 2.0
 * @date 2015年4月22日 下午3:17:18
 */
@Service("redEnvelopeAttachedService")
public class RedEnvelopeAttachedServiceImpl implements RedEnvelopeAttachedService {
	@Resource
	private RedEnvelopeAttachedDao redEnvelopeAttachedDao;

	@Override
	public List<RedEnvelopeAttached> list(long redEnvelopeId) {
		return redEnvelopeAttachedDao.list(redEnvelopeId);
	}

	@Override
	public void save(List<RedEnvelopeAttached> list) {
		redEnvelopeAttachedDao.save(list);
	}
}
